<template>
  <div>
    <h1 v-upper="msg"></h1>
     <Header></Header>
     <!-- 路由组件出口位置 -->
     <router-view></router-view>
      <!-- 在Home、Search显示的，在登录和注册隐藏 -->
      <!-- <Footer v-show="$route.path == '/home' || $route.path == '/search'"></Footer> -->
      <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: '',
  data(){
    return {
      msg:"abc"
    }
  },
  components: {
    Header,
    Footer,
  },
  mounted() {
     //通知Vuex发请求，获取数据，存储于仓库当中
     this.$store.dispatch("categoryList");
     //获取用户信息在首页展示
    //  this.$store.dispatch("getUserInfo");
    //  console.log('APP');
  }
}
</script>

<style scoped>

</style>
